package com.abhi.apache.cxf.model;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.abhi.apache.cxf.adaptar.CDATAListAdapter;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name="Addresses")
public class Addresses {

	@XmlElement(name="Address",type=Address.class)
	@XmlJavaTypeAdapter(CDATAListAdapter.class)
	private List<Address> addresses = new ArrayList<Address>();

	public List<Address> getAddresses() {
		return addresses;
	}

	public void setAddresses(List<Address> addresses) {
		this.addresses = addresses;
	}
	
}
